package request

import (
	"gitcode.com/G-YT/iHealth25/server/model/common/request"
	"gitcode.com/G-YT/iHealth25/server/model/health"
	"time"
)

type HealthQAndASearch struct {
	//system.SysUser
	health.HealthQAndA
	StartCreatedAt *time.Time `json:"startCreatedAt" form:"startCreatedAt"`
	EndCreatedAt   *time.Time `json:"endCreatedAt" form:"endCreatedAt"`
	request.PageInfo
}

type HealthQAndASearchReq struct {
	Question       string     `json:"question" form:"question" gorm:"column:question;comment:问题;type:text;"` //问题
	NickName       string     `json:"nickName" form:"nickName" gorm:"column:question;comment:问题;type:text;"` //问题
	StartCreatedAt *time.Time `json:"startCreatedAt" form:"startCreatedAt"`
	EndCreatedAt   *time.Time `json:"endCreatedAt" form:"endCreatedAt"`
	request.PageInfo
}

type HealthQAndASearchRsp struct {
}

type HealthQuestionSearch struct {
	health.HealthQuestion
	Name           string     `json:"name" form:"name"`                     // 用户名搜索字段
	StartCreatedAt *time.Time `json:"startCreatedAt" form:"startCreatedAt"`
	EndCreatedAt   *time.Time `json:"endCreatedAt" form:"endCreatedAt"`
	request.PageInfo
}
